function getEquipmentRecord() {
    if (null == $('#equipmentInfo_table_2').datagrid('getRows')) {
        $.messager.alert('提示信息', '请先注册一条器材信息信息!', 'info');
        return false;
    }
    var rows = $('#equipmentInfo_table_2').datagrid('getSelections');
    if (rows.length <= 0) {
        $.messager.alert('提示信息', '请先选择一条器材信息!', 'info');
    } else {
        $('#equipmentRecordDiv').window("open");
        var i = rows.length - 1;
        var eId = rows[i].eId;
        var eName = rows[i].eName;
        $.ajax({
            url: base + "/manage/getEquipmentRecordList.action",
            type: "post",
            data: {"eId":eId},
            cache: false,
            success: function (data) {
                if (data != null) {
                    var Tx = [];
                    var Ty = [];
                    for (var i = 0; i < data.rows.length; i++) {
                        Tx[i] = data.rows[i].todayTime;
                        Ty[i] = data.rows[i].doTime;
                    }
                    $('#container').highcharts({
                        title: {
                            text: '器材使用情况',
                            x: -20 //center
                        },
                        subtitle: {
                            text: '',
                            x: -20
                        },
                        xAxis: {
                            categories: Tx
                        },
                        yAxis: {
                            title: {
                                text: '使用时长'
                            },
                            plotLines: [{
                                value: 0,
                                width: 1,
                                color: '#808080'
                            }]
                        },
                        tooltip: {
                            valueSuffix: '分钟'
                        },
                        legend: {
                            layout: 'vertical',
                            align: 'right',
                            verticalAlign: 'middle',
                            borderWidth: 0
                        },
                        series: [{
                            name: eName,
                            data: Ty
                        }]
                    })

                } else {
                    return false;
                }
            },
            async: false
        })
    }

}